#include <iostream>
#include <TcpSocket.h>
#include <SocketHandler.h>
#include <Ipv4Address.h>

using namespace std;

int main(int argv, char **argc)
{
	SocketHandler handler;
	TcpSocket *socket = new TcpSocket(handler);
	
	socket -> SetDeleteByHandler(true);
	//socket -> Open("localhost", 9002);
	
	bool res = socket -> Open(Ipv4Address("www.googled12dws.com", 900), true);
	
	cout << res << endl;
	
	socket -> Send("Hey");
	
	cout << "Hello world! Christian" << endl;
	return 0;
}
